<script>
	export default {
		onLaunch: function() {
			// console.log('App Launch')
			try {
			    const value = uni.getStorageSync('userinfo');
			    if (value) {
			      uni.switchTab({
			          url: '/pages/index/index'
			      });
			    }else{
					uni.switchTab({
					    url: '/pages/login/login'
					});
				}
			} catch (e) {
			    // error
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
